package com.jdrx.sw.sewage.constant;

import java.util.Map;
import java.util.regex.Pattern;

import com.google.common.collect.ImmutableMap;

public interface AioAppConstant {
	// 允许请求的方法
	Map<String, String> ALLOW_METHOD_MAP = ImmutableMap.of("POST", "POST", "GET", "GET", "DELETE", "DELETE");
	
	// 不需要校验的方法
	Pattern SKIP_URI_PATTERN = Pattern.compile("^/[\\-_a-z]+/(system|website)/.*");
	
	String GW_TOKEN = "X-TOKEN";
	
	String GW_UID = "X-UID";
	
	String GW_TID = "TENANT-ID";
	
	String GW_DATA_NODE = "DATA-NODE";
	
	String REDIS_TENANT = "sewage:tenant:";
	
	/*jwt中获取的字段*/
	/**
	 * jwt中获取的用户id
	 */
	String JWT_UID = "id";
	
	/**
	 * jwt中获取的租户id
	 */
	String JWT_TID = "tenantId";
	
	/**
	 * jwt中获取的租户数据节点
	 */
	String JWT_DATA_NODE = "dataNode";
}